#ifndef EDITPOINTDIALOG_H
#define EDITPOINTDIALOG_H

#include <QDialog>
#include <QFileDialog>
#include <QDesktopServices>
#include <QUrl>
#include <QMessageBox>
#include "point.h"

// Диалоговое окно "Редактирование точки".

namespace Ui {
class EditPointDialog;
}

class EditPointDialog : public QDialog
{
    Q_OBJECT

public:
    explicit EditPointDialog(Point*, QWidget *parent = 0);
    ~EditPointDialog();
    bool Result(void);
private:
    Ui::EditPointDialog *ui;
    Point *myPoint;
    bool IsEnabledToSave(void) const;
private slots:
    void on_linkFileButton_clicked();
    void on_deleteFileButton_clicked();
    void on_pointNameLineEdit_textChanged(const QString &arg1);
    void on_latitudeLineEdit_textChanged(const QString &arg1);
    void on_longitudeLineEdit_textChanged(const QString &arg1);
    void on_fileListWidget_doubleClicked(const QModelIndex &index);
};

#endif // EDITPOINTDIALOG_H
